package com.itsq.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 史先帅
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("car")
@ApiModel(value="Car对象", description="")
public class Car implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "汽车信息表id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "车牌号")
    @TableField("car_number")
    private String carNumber;

    @ApiModelProperty(value = "车架号")
    @TableField("frame")
    private String frame;

    @ApiModelProperty(value = "图片")
    @TableField("img")
    private String img;

    @ApiModelProperty(value = "发动机号")
    @TableField("engine")
    private String engine;

    @ApiModelProperty(value = "车品牌")
    @TableField("brand")
    private String brand;

    @ApiModelProperty(value = "车型号")
    @TableField("model")
    private String model;

    @ApiModelProperty(value = "单位id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "科室id")
    @TableField("department_id")
    private Integer departmentId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "cre_date",fill = FieldFill.INSERT)
    private Date creDate;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "upd_date",fill = FieldFill.UPDATE)
    private Date updDate;

    @ApiModelProperty(value = "状态")
    @TableField("state")
    @TableLogic
    private Integer state;

    @ApiModelProperty(value = "汽车信息")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "租车价格")
    @TableField("money")
    private Double money;

    @ApiModelProperty(value = "所属公司名")
    @TableField("company")
    private String company;

    @ApiModelProperty(value = "权重")
    @TableField("weight")
    private Integer weight;

    public static final String ID = "id";

    public static final String CAR_NUMBER = "car_number";

    public static final String FRAME = "frame";

    public static final String IMG = "img";

    public static final String BRAND = "brand";

    public static final String MODEL = "model";

    public static final String COMPANY_ID = "company_id";

    public static final String DEPARTMENT_ID = "department_id";

    public static final String CRE_DATE = "cre_date";

    public static final String UPD_DATE = "upd_date";

    public static final String STATE = "state";

    public static final String CONTENT = "content";

    public static final String MONEY = "money";

    public static final String COMPANY = "company";

    public static final String WEIGHT = "weight";
}
